package com.yiguantong.police.toolbar;

/**
 * Created by qiuxiaolong on 2017/7/7.
 */
public enum ToolbarMenuEnum {
    PopupIcon(0x000001),
    CustomService(0x000010),
    TextMenu(0x000100),
    Message(0x001000),
    Home(0x010000),
    Refresh(0x100000),
    SearchIcon(8);
    private int value;

    private ToolbarMenuEnum(int i) {
        this.value = i;
    }

    public int value() {
        return this.value;
    }

    public static ToolbarMenuEnum valueOf(int value) {
        switch (value) {
            case 0x1000001:
                return PopupIcon;
            case 0x1000010:
                return CustomService;
            case 0x1000100:
                return TextMenu;
            case 0x1001000:
                return Message;
            case 0x1010000:
                return Home;
            case 0x1100000:
                return Refresh;
            case 8:
                return SearchIcon;
            default:
                return PopupIcon;
        }
    }

}
